﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace BG.DAL.Model
{
    public class Product
    {
        [Key]
        public Guid kProductId { get;set; }

        //[ForeignKey("ManufacturerId")]
        [Display(Name = "Manufacturer")]
        public Guid kManuFacturerId { get; set; }

        [Display(Name = "Product Title"), Required(ErrorMessage = "* This field is required"), StringLength(100)]
        public String sProductTitle { get; set; }

        [Display(Name = "Serial Number"), StringLength(10)]
        public String sSerialNumber { get; set; }

        [Display(Name = "Frame Detail"), StringLength(50)]
        public String sFrameDetail { get; set; }

        [Display(Name = "Brake Detail"), StringLength(50)]
        public String sBrakeDetail{ get; set; }

        [Display(Name = "Motor Detail"),StringLength(50)]
        public String sMotorDetail { get; set; }

        [Display(Name = "Controller Detail"), StringLength(50)]
        public String sControllerDetail { get; set; }

        [Display(Name = "Wheel Detail"), StringLength(50)]
        public String sWheelDetail { get; set; }

        [Display(Name = "Battery Detail"), StringLength(50)]
        public String sBatteryDetail { get; set; }

        [Display (Name = "Other Detail"), StringLength(50)]
        public String sOtherDetail { get; set; }

        public DateTime? dtDateAdd { get; set; }

        public DateTime? dtDateUpdate { get; set; }

        public Product()
        {
            dtDateAdd = DateTime.Today;
        }
    }
}
